﻿using Device.ViewModels;
using Device.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Regions;

namespace Device
{
    public class DeviceModule : IModule
    {
        public const string DeviceViewName = "device";
        public const string DeviceDialogName = "deviceDialog";

        public void OnInitialized(IContainerProvider containerProvider)
        {

        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterForNavigation<DeviceView, DeviceViewModel>(DeviceViewName);
            containerRegistry.RegisterDialog<DeviceDialog, DeviceDialogViewModel>(DeviceDialogName); 
        }
    }
}